#include<bits/stdc++.h>
using namespace std;
inline int read() {
    int x=0,f=1;
    char ch=getchar();
    while(ch<'0' || ch>'9') {
        if(ch=='-') f*=-1;
        ch=getchar();
    }
    while(ch<='9' && ch>='0') {
        x=x*10+ch-'0';
        ch=getchar();
    }
    return x*f;
}
int n,a[100005],ans;
int main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();
    ans=n;
    for(int i=1;i<=n;++i) a[i]=read();
    sort(a+1,a+1+n);
    int hd=1;
    for(int i=2;i<=n;++i) {
        if(a[i]>a[hd]) {
            hd++;
            ans--;
        }
    }
    cout<<ans<<endl;
    return 0;
}